package com.yuzu.yuzuapiclientsdk;

import com.yuzu.yuzuapiclientsdk.client.YuzuApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("yuzuapi.client")
@Data
@ComponentScan
public class YuzuApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public YuzuApiClient yuzuApiClient() {
        return new YuzuApiClient(accessKey, secretKey);
    }
}
